/*
 *
 * Copyright (C) 2012 Walter Lütgenau
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package offset.nodes.client.dialog.newnode.model;

import java.net.URL;
import java.util.ResourceBundle;
import offset.nodes.client.config.PositionableAdditionalElement;

/**
 *
 * @author Walter Lütgenau
 */
public abstract class AbstractNewNodeConfigurator implements NewNodeConfigurator, PositionableAdditionalElement {
    String path;
    URL repository;
    URL service;
    Object insertBefore = null;
    ResourceBundle bundle = ResourceBundle.getBundle("offset.nodes.client.dialog.view.DialogBundle");

    public AbstractNewNodeConfigurator() {
    }

    public void init(String path, URL repository, URL service) {
        this.path = path;
        this.repository = repository;
        this.service = service;
    }

    public String getPath() {
        return path;
    }

    public URL getRepository() {
        return repository;
    }

    public URL getService() {
        return service;
    }

    public ResourceBundle getBundle() {
        return bundle;
    }

    @Override
    public Object getInsertBefore() {
        return insertBefore;
    }

    @Override
    public void setInsertBefore(Object insertBefore) {
        this.insertBefore = insertBefore;
    }

}
